/*
  主体结构
*/
import Index from "@/views/Index.vue";

export const routes = [
  {
    path: "/",
    name: "Index",
    redirect: "/index",
  },
  {
    path: "/index",
    component: Index,
    name: "Admin",
    redirect: '/disinfectMap',
    children: [
      // {
      //   path: "",
      //   name: "environment",
      //   component: ()=> import('@/views/Page/Map.vue'),
      // },
      {
        path: "/disinfectMap",
        name: "disinfectMap",
        component: ()=> import('@/views/Page/disinfectMap.vue'),
      },
      {
        path: "/disinfectData",
        name: "disinfectData",
        component: ()=> import('@/views/Page/disinfectData.vue'),
      },
      {
        path: "/detectMap",
        name: "detectMap",
        component: ()=> import('@/views/Page/detectMap.vue'),
      },
      {
        path: "/detectData",
        name: "detectData",
        component: ()=> import('@/views/Page/detectData.vue'),
      },
    ]
  },
  {
    path: "/login",
    component: ()=> import('@/views/Login/Login.vue'),
    name: "Login",
  },
  {
    path: "*",
    name: "404",
    redirect: "/error",
    component:()=> import('@/views/Error/404.vue')
  },
];
